.class Lcom/estrongs/android/ftp/ESFtpService$a;
.super Landroid/os/Handler;
.source "ESFtpService.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ftp/ESFtpService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ftp/ESFtpService;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ftp/ESFtpService;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x3

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eq v0, v3, :cond_3

    if-eq v0, v2, :cond_0

    goto/16 :goto_3

    .line 2
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget v4, p1, Landroid/os/Message;->arg1:I

    int-to-long v4, v4

    invoke-static {v4, v5}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "/s"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 3
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget p1, p1, Landroid/os/Message;->arg2:I

    int-to-long v6, p1

    invoke-static {v6, v7}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object v4, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {v4}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;)I

    move-result v4

    const-string v5, ": "

    if-ne v4, v3, :cond_1

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {p1}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;)I

    move-result v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v4, 0x7f1108e9

    invoke-virtual {v3, v4}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/ftp/ESFtpService;->a(ILjava/lang/String;)V

    goto/16 :goto_3

    .line 6
    :cond_1
    iget-object v3, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {v3}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;)I

    move-result v3

    if-ne v3, v2, :cond_2

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {v0}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;)I

    move-result v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v4, 0x7f11073c

    invoke-virtual {v3, v4}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/ftp/ESFtpService;->a(ILjava/lang/String;)V

    goto/16 :goto_3

    .line 8
    :cond_2
    iget-object v2, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {v2}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;)I

    move-result v2

    if-ne v2, v1, :cond_9

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {v1}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;)I

    move-result v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v6, 0x7f110739

    invoke-virtual {v4, v6}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, ", "

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v4, 0x7f11073d

    .line 10
    invoke-virtual {v0, v4}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 11
    invoke-virtual {v1, v2, p1}, Lcom/estrongs/android/ftp/ESFtpService;->a(ILjava/lang/String;)V

    goto/16 :goto_3

    .line 12
    :cond_3
    iget v0, p1, Landroid/os/Message;->arg1:I

    if-lez v0, :cond_4

    iget v0, p1, Landroid/os/Message;->arg2:I

    if-lez v0, :cond_4

    goto :goto_0

    .line 13
    :cond_4
    iget v0, p1, Landroid/os/Message;->arg1:I

    if-lez v0, :cond_5

    const/4 v1, 0x1

    goto :goto_0

    .line 14
    :cond_5
    iget p1, p1, Landroid/os/Message;->arg2:I

    if-lez p1, :cond_6

    const/4 v1, 0x2

    goto :goto_0

    :cond_6
    const/4 v1, 0x0

    :goto_0
    const-string p1, "..."

    if-nez v1, :cond_8

    .line 15
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object v0

    if-nez v0, :cond_7

    .line 16
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v3, 0x7f11073a

    invoke-virtual {v2, v3}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_1

    .line 17
    :cond_7
    iget-object p1, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v2, 0x7f11083b

    invoke-virtual {p1, v2}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 18
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "ftp:/"

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, ":"

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->e()I

    move-result p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 19
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/ftp/ESFtpService;->a(ILjava/lang/String;)V

    goto :goto_2

    .line 20
    :cond_8
    iget-object v0, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    const v4, 0x7f11073b

    invoke-virtual {v3, v4}, Landroid/app/Service;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/ftp/ESFtpService;->a(ILjava/lang/String;)V

    .line 21
    :goto_2
    iget-object p1, p0, Lcom/estrongs/android/ftp/ESFtpService$a;->a:Lcom/estrongs/android/ftp/ESFtpService;

    invoke-static {p1, v1}, Lcom/estrongs/android/ftp/ESFtpService;->a(Lcom/estrongs/android/ftp/ESFtpService;I)I

    :cond_9
    :goto_3
    return-void
.end method
